@extends('layouts.admin')
@section('content')
    
          <section id="main-content">
          <section class="wrapper">
              <!-- page start-->
              <div class="row">
                  <div class="col-lg-12">
                      <section class="panel">
                          <header class="panel-heading">
                             编辑角色
                          </header>
                          <div class="panel-body">
                              <div class="form">
                                  <form class="cmxform form-horizontal tasi-form" id="signupForm" action="{{ route('admin.access.roles.update',['id'=>$role->id]) }}" method="POST">
                                    <div class="panel-body panel-body-nopadding">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">角色标识 <span class="asterisk">*</span></label>

                                <div class="col-sm-6">
                                    <input type="text" data-toggle="tooltip" name="slug"
                                           data-trigger="hover" class="form-control tooltips"
                                           data-original-title="不可重复" value="{{ $role->slug }}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">显示名称</label>

                                <div class="col-sm-6">
                                    <input type="text" class="form-control" name="name"
                                           value="{{ $role->name }}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">级别</label>

                                <div class="col-sm-6">
                                    <input type="text" class="form-control" name="level"
                                           value="{{ $role->level }}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">说明</label>

                                <div class="col-sm-6">
                                    <input type="text" class="form-control" name="description"
                                           value="{{ $role->description }}">
                                </div>
                            </div>

                            <input type="hidden" name="_method" value="PUT">
                            {{ csrf_field() }}
                        </div><!-- panel-body -->
                                      <!-- <div class="form-group ">
                                          <label for="firstname" class="control-label col-lg-2">Firstname</label>
                                          <div class="col-lg-10">
                                              <input class=" form-control" id="firstname" name="firstname" type="text" />
                                          </div>
                                      </div> -->
                                      
                                      <div class="form-group">
                                          <div class="col-lg-offset-2 col-lg-10">
                                              <button class="btn btn-danger" type="submit">保存</button>
                                              <!-- <button class="btn btn-default" type="button">Cancel</button> -->
                                          </div>
                                      </div>
                                  </form>
                              </div>
                          </div>
                      </section>
                  </div>
              </div>
              <!-- page end-->
          </section>
      </section>
@endsection